package com.hzk.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @auoter:jackh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ListVo extends RespBean {
    private Object state;

    public ListVo(long code, Object message, Long totalCount, Object obj, Object state) {
        super(code, message, totalCount, obj);
        this.state = state;
    }

    public static ListVo success(Object obj, Object obj2){
        return new ListVo(RespBeanEnum.SUCCESS.getCode(),RespBeanEnum.SUCCESS.getMessage(),0L,obj,obj2);

    }

}
